<template>
    <div class="demoCondition">
        <div class="title_box">
            {{titleHead}}
        </div>
        <div class="con_data">
            <div class="one_box_l" v-for="(item,i) in dataCondition" :key="i">
                <div class="title_mini">
                    <span class="svg_color" :style="{color:item.color}">
                        <svg-icon :icon-class="item.icon" />
                    </span>
                    <span>{{item.title}}</span>
                </div>
                <div class="datanum">
                    {{item.num}}
                </div>
            </div>
        </div>
    </div>
  </template>
  
  <script>
  
  export default {
    props:{
        dataCondition:[Array],
        titleHead:[String]
    },
    data(){
      return{
      }
    },
    methods:{
     
    }
  }
  </script>
  
<style lang="scss" scoped>
    .demoCondition{
        flex: 1;
        background-color: #fff;
        border-radius: 14px;
        .title_box{
            font-size: 14px;
            font-weight: bold;
            padding:10px;
        }
        .con_data{
            padding: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            .one_box_l{
                flex: 1;
                background-color: #f5f5f5;
                border-radius: 4px;
                padding: 15px 10px;
                .title_mini{
                    color: #888;
                    font-size: 13px;
                    .svg_color{
                        color: #67C23A;
                        padding-right: 10px;
                        font-size: 18px;
                    }
                }
                .datanum{
                    font-family: MicrosoftYaHei;
                    font-size: 20px;
                    padding-top: 4px;
                    color: #000;
                    white-space: nowrap;
                    overflow: hidden;
                }
            }
        }
    }
</style>
  